package com.iot08.common.entity.app;

import com.iot08.common.entity.admin.SysUser;
import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

/**
 * @version 1.0
 * @Description: 媒体位
 * @author: Rock
 * @time: 2020/10/22 10:59
 */
@Data
@Document("advert")
public class Advert implements Serializable {
    private static final long serialVersionUID = 1L;

    @Field("_id")
    private String id;

    //媒体位ID(悬浮媒体位和插屏媒体位类型时才有)
    private Long number;

    //类型；-2=悬浮媒体位；-1=插屏媒体位；1=首页banner；2=贴心服务专区；3=首页文字；4=微聊文字；5=定位文字
    private Integer type;

    //跳转类型；1=内部跳转；2=小程序；3=公众号；4=广告SDK; 5=deeplink
    @Field("skip_type")
    private Integer skipType = 1; //默认为1

    //show_app_type : 0(默认):e路相伴  1:
    @Field("show_app_type")
    private Integer showAppType = 0;

    //排序号
    private Integer index;

    //状态，0=未发布；1=已发布
    private Integer status;
    //点击数
    @Field("click_count")
    private Integer clickCount;
    //链接
    private String link;

    //悬浮媒体位: 马甲包-链接
    private String majia_link;

    //标题
    private String title = "";

    //图片url
    @Field("img_url")
    private String imgUrl = "";

    //小程序ID
    @Field("small_program_id")
    private String smallProgramId;
    //小程序跳转的商品ID
    @Field("small_program_path")
    private String smallProgramPath;
    //按钮底图的完整URL连接
    @Field("bottom_btn_image")
    private String bottomBtnImage;
    //包含二维码的图的完整URL连接
    @Field("include_QRcode_image")
    private String includeQRcodeImage;
    //点击按钮图片,截图提示跳转的内容
    @Field("jump_tips_words")
    private String jumpTipsWords;

    //广告商
    @Field("advert_firm")
    private String advertFirm;

    //发布者
    private String publisher;
    //发布者
    private String unpublisher;

    private String creator;

    //发布日期
    @Field("publish_time")
    private Date publishTime;
    //发布日期
    @Field("unpublish_time")
    private Date unpublishTime;

    //0=正常；1=删除
    private Integer deleted;

    @Field("create_time")
    private Date createTime;

    @Field("update_time")
    private Date updateTime;

    @Transient
    private SysUser creatorUser;
    @Transient
    private SysUser publisherUser;

}
